import { _decorator } from "cc";
const { ccclass } = _decorator;

@ccclass("Manager")
export class Manager {
  private static _instance: Manager = null;

  public static getInstance(): Manager {
    if (!this._instance) {
      this._instance = new Manager();
    }
    return this._instance;
  }

  private constructor() {
    this.init();
  }

  private init(): void {
    // 初始化各个管理器
  }
}
